var express = require('express');
const RateController = require('../../controllers/web/RateController');
var RateRouter = express.Router();

//图片上传
const multer = require("multer")
const upload = multer({dest:"public/avataruploads/"})
// 朝这个路径发送请求  就会进UserController方法
RateRouter.post("/webapi/rate/payment/:data",upload.single("file"),RateController.rate)
RateRouter.post("/webapi/rate/changeispay/:id",upload.single("file"),RateController.changeispay)


// RateRouter.get("/webapi/rate/list",RateController.getList)
// RateRouter.get("/webapi/rate/list2",RateController.getList2)
// RateRouter.get("/webapi/rate/list3",RateController.getList3)
// RateRouter.get("/webapi/rate/list4/:data",RateController.getListdata)
// RateRouter.get("/webapi/rate/slist",RateController.searchGetList)
RateRouter.get("/webapi/rate/list/:data",RateController.webgetList)
RateRouter.get("/webapi/rate/alllist/:data",RateController.webgetallList)

// RateRouter.delete("/webapi/rate/list/:id",RateController.delList)
// RateRouter.get("/webapi/rate/list/:id",RateController.getList)
// RateRouter.put("/webapi/rate/list/:id",RateController.putList)

 
module.exports = RateRouter;

